import http from '@/utils/request'

export function getBanner(params){
  return http.request({
    url:'/banner/get',
    method:'get',
    params
  })
}

export function insertBanner(data){
  return http.request({
    url:'/banner/add',
    method:'post',
    data
  })
}

export function updateBanner(data){
  return http.request({
    url:'/banner/update',
    method:'post',
    data
  })
}

export function uploadPhoto(data){
  return http.request({
    url:'/admin/photo',
    method:'post',
    data
  })
}

export function deleteBanner(data){
  return http.request({
    url:'/banner/delete',
    method:'post',
    data
  })
}